package com.sg.dto.biz.framework.common;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc OldInductionRecordDto
 * @使用场景
 */
@Data
public class OldInductionRecordDto extends BaseDto implements Serializable {

    /**
     * 身份人员ID
     */
    @ApiModelProperty("身份人员ID")
    private String originalRoleMemberId;

    /**
     * 个人账号ID
     */
    @ApiModelProperty("个人账号ID")
    private String userId;

    /**
     * 就职单位对象实例ID
     */
    @ApiModelProperty("就职单位对象实例ID")
    private String entityId;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        OldInductionRecordDto that = (OldInductionRecordDto) o;
        return originalRoleMemberId == that.originalRoleMemberId && userId == that.userId && entityId == that.entityId;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), originalRoleMemberId, userId, entityId);
    }

}
